package com.eastjet.maintenance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eastjet.maintenance.domain.StorageLocation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【storage_location(存放位置)】的数据库操作Mapper
 * @createDate 2024-11-25 09:23:39
 * @Entity com.eastjet.pojo.domain.StorageLocation
 */
public interface StorageLocationMapper extends BaseMapper<StorageLocation> {

    /**
     * 更新存放位置状态
     *
     * @param code
     * @param status
     * @return
     */
    Integer UpdateLocation(@Param("code") String code, @Param("status") String status);

    /**
     * 删除存放位置
     *
     * @param code
     * @return
     */
    Integer DeleteLocation(@Param("code") String code);

    /**
     * 存储位置列表
     * @param name
     * @return
     */
    List<StorageLocation> selectAll(@Param("name") String name);

}




